<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<title>编辑工程</title>
<style type="text/css">
  table {
    border-collapse: collapse;
    width: 300px
  }
  td {
    border: 1px solid
  }
</style>
</head>
<body>
  <div style="text-align: center;">
    <fieldset>
      <s:form action="projectAction!modify.action" method="post">
        <legend>编辑工程信息</legend>
        <s:textfield label="工程id" name="project.projectId" readonly="true" />
        <s:textfield label="工程名称" name="project.projectName" title="不超过20个字符" />
        <s:textfield label="工期" name="project.duration" />
        <s:textfield label="投资额" name="project.investment" />
        <s:textfield label="开工时间" name="project.startTime" />
        <s:submit value="修改" />
      </s:form>
    </fieldset>
    <s:if test="project.workers!=null&&project.workers.size>0">
      <s:property value="'以下工人参与此工程'" />
      <table>
        <tr>
          <th>员工id</th>
          <th>员工姓名</th>
        </tr>
        <s:iterator value="project.workers" var="worker" status="stat">
          <tr>
            <td><s:property value="#worker.workerId" /></td>
            <td><s:property value="#worker.workerName" /></td>
          <tr>
        </s:iterator>
      </table>
      总共有<s:property value="project.workers.size" />名工人参与此工程
    </s:if>
  </div>
</body>
</html>
